libxl: add LIBXL_LOGD_* and LOG*D function families.
authorCedric Bosdonnat <cbosdonnat@suse.com>
Fri, 2 Dec 2016 15:08:07 +0000 (16:08 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sat, 3 Dec 2016 15:57:33 +0000 (15:57 +0000)
commitf98580259575134c134d5731b20ec23f6954b1f2
tree3953695130db8e298dc1c0bc33a807eab7d924db
parentcbe2ecccac6288dc131f1cd40f03ed603d42f387
libxl: add LIBXL_LOGD_* and LOG*D function families.

These functions should be used to log messages when the domain
id is known. libxl__log will now prepend the log message by
"Domain %PRIu32:" if the domain id is a valid one.

This aims at helping consumers filter logs on domain IDs.

Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_event.c
tools/libxl/libxl_internal.c
tools/libxl/libxl_internal.h